import request from '@/util/request'

export function getUrlRecorcdList (query) {
  return request({
    url: '/url_record/list',
    method: 'get',
    params: query
  })
}

export function addUrlRecorcd (data) {
  return request({
    url: '/url_record',
    method: 'post',
    data: data
  })
}

export function updateUrlRecorcd (data) {
  return request({
    url: '/url_record',
    method: 'put',
    data: data
  })
}

export function disabledOrActive (id) {
  return request({
    url: `/url_record/disabledOrActive/${id}`,
    method: 'put',
  })
}
